import java.util.UUID;

public class Demo {

    public static void main(String[] args) {
        String uuid = UUID.randomUUID().toString();
        //c40d4997-7734-4728-8bb4-43fc05eaca10
        System.out.println(uuid);
        //851fee51ae5d4baf9b7b32aefac508c1
        System.out.println(uuid.replace("-", ""));
    }
}
